<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用公共文件
// 自定义打印
function V($param){
	var_dump($param);
	die;
}
function P($param){
	echo "<pre>";
	print_r($param);
	die;
}
//自定义来查询最后一次的sql语句
function Sql($table){
	echo Db($table)->getlastsql();
}

//处理数据  进行加密
function jm($data){
	// return serialize($data);
	return "Id".$data.md5(rand(1000,9999));
}
//处理数据  进行反解密
function fjm($data){
	return substr(jm($data),4,2);
}